import Vue from 'vue'

export default {
    namespaced: true,
    state: () => ({
        //   ****
        addressInfo: [
            {
                id:1,
                name:'张三2123',
                tel:'12345678901',
                address: '重庆市渝中区满级们123',
                isDefault:true,
                switchable:true
            },
            {
                id:2,
                name:'张三',
                tel:'12345678901',
                address: '重庆市渝中区满级们123',
                isDefault:false,
                switchable:true
            },
            
        ]

    }),


    getters: {
        

    },
    mutations: {
        setAddress(state, obj) {
            // Object.assign(state.addressInfo, obj)
            
            state.addressInfo.push(obj)
            console.log(state.addressInfo,obj)

        }
    },


}